package basic;

public class StringJoinTest1 {
    public static void main(String[] args) {
        //定义两个字符串
        String str1 = "Hello";
        String str2 = "慕课网";
        //将字符串str1连接一个空格，再连接str2，最后再连接一个感叹号
        String str3 = str1 + " " + str2 + "! ";
        System.out.println(str3);
    }
}
